@import "tailwindcss";

:root {
  --background: #ffffff;
  --foreground: #171717;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}

/* 时钟样式 */
.clock-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.clock {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 8rem;
  font-weight: bold;
}

.flipper {
  position: relative;
  width: 100px;
  height: 150px;
  perspective: 1000px;
}

.top, .bottom, .top-flip, .bottom-flip {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--foreground);
  color: var(--background);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  backface-visibility: hidden;
  transition: transform 0.5s ease-in-out;
}

.top, .bottom {
  z-index: 2;
}

.top-flip, .bottom-flip {
  z-index: 1;
}

/* 翻页动画 */
.flip-out {
  transform: rotateX(90deg);
}

.flip-in {
  transform: rotateX(0deg);
}

.divider {
  font-size: 8rem;
  color: var(--foreground);
  opacity: 0.7;
}

/* 控制按钮样式 */
.controls {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.control-btn {
  width: 50px;
  height: 50px;
  border: none;
  background: var(--foreground);
  color: var(--background);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.control-btn:hover {
  background: var(--foreground);
}

.control-btn svg {
  width: 24px;
  height: 24px;
}

/* 日期显示样式 */
.date-container {
  margin-top: 2rem;
  text-align: center;
  color: var(--foreground);
  opacity: 0.8;
}

/* SEO内容样式 */
.seo-content {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.subtitle {
  font-size: 1.2rem;
  color: var(--foreground);
  opacity: 0.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-item {
  background: var(--foreground);
  color: var(--background);
  padding: 2rem;
  border-radius: 10px;
  transition: transform 0.2s;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item h3 {
  color: var(--background);
  margin-bottom: 1rem;
}

.feature-item p {
  color: var(--background);
  opacity: 0.8;
}

/* 主题样式 */
body.theme-dark {
  --background: #0a0a0a;
  --foreground: #ededed;
}

body.theme-light {
  --background: #ffffff;
  --foreground: #171717;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .clock {
    font-size: 6rem;
  }
  
  .controls {
    margin-top: 1rem;
  }
  
  .control-btn {
    width: 40px;
    height: 40px;
  }
  
  .control-btn svg {
    width: 20px;
    height: 20px;
  }
}
